<!DOCTYPE html>
<html style="height: 100%;">
<head>
    <meta charset="utf-8">
    <title></title>
    <script type="text/javascript">
        onload=function(){
            document.getElementById("adminli").onclick=function (){
                if(document.getElementById("spanadmin").innerText==="")
                {
                    document.getElementById("spanadmin").innerHTML=
                        "<li><a href=\"#\"id=\"login\">用户注册</a></li>" +
                        "<li><a href=\"#\"id=\"find\">用户查询</a></li>"
                    document.getElementById("find").onclick=function(){
                        document.getElementById("yemian").src="/web4/find"
                    }
                    document.getElementById("login").onclick=function(){
                        document.getElementById("yemian").src="/web4/006/login.html"
                    }
                }
                else
                {
                    document.getElementById("spanadmin").innerHTML=""
                }
            }

            document.getElementById("test").onclick=function (){
                if(document.getElementById("spantest").innerText==="")
                {
                    document.getElementById("spantest").innerHTML=
                        "<li><a href=\"#\"id=\"kao\">参加考试</a></li>" +
                        "<li><a href=\"#\"id=\"fen\">成绩查询</a></li>"
                    document.getElementById("kao").onclick=function(){
                        document.getElementById("yemian").src="/web4/kaoshi"
                    }
                    document.getElementById("fen").onclick=function(){
                        document.getElementById("yemian").src="/web4/corefind"
                    }
                }
                else
                {
                    document.getElementById("spantest").innerHTML=""
                }
            }
            document.getElementById("shop").onclick=function(){
                document.getElementById("yemian").src="/web4/shangping.html"
            }
            //ques---------

            //ques----------
            document.getElementById("kaoli").onclick=function (){
                if(document.getElementById("spanli").innerText==="")
                {
                    document.getElementById("spanli").innerHTML=
                        "<li><a href=\"#\"id=\"quesadd\">添加试题</a></li>" +
                        "<li><a href=\"#\"id=\"quesfind\">管理试题</a></li>";
                    document.getElementById("quesadd").onclick=function(){
                        document.getElementById("yemian").src="/web4/quesadd.html"
                    }
                    document.getElementById("quesfind").onclick=function(){
                        document.getElementById("yemian").src="/web4/quesfind"
                    }
                    document.getElementById("quesdelete").onclick=function(){
                        document.getElementById("yemian").src="/web4/quesdelete.html"
                    }
                    document.getElementById("quesupdate").onclick=function(){
                        document.getElementById("yemian").src="/web4/quesupdate.html"
                    }
                }
                else
                {
                    document.getElementById("spanli").innerHTML=""
                }
            }
        }
    </script>
</head>
<body style="height: 100%;background: #00d600">
<div style="width:100%;height: 20%;background-color: #00d600;text-align:center;font-size: 50px;line-height: 130px;color: brown">
	地大管理系统
</div>
<div style="width: 100%;height: 80%;background-color: #FAEBD7;">
    <div style="width: 25%;height: 100%;background-color: #4ee8ff;float: left;"align="left">
        <ol>
            <li id="adminli"><a href="#">用户管理</a></li>
            <ul>
                    <span style="font-size: 14px;color:blue" id="spanadmin">
                    </span>
            </ul>
            <li id="kaoli"><a href="#">试题管理</a></li>
                <ul>
                    <span style="font-size: 14px;color:blue" id="spanli">
                    </span>
                </ul>

            <li><a href="#"id="test">考试系统</a></li>
            <ul>
                    <span style="font-size: 14px;color:blue" id="spantest">
                    </span>
            </ul>
            <li><a href="#"id="shop">购物系统</a></li>
            <li><a href="/web4/tuichu"id="exit">退出登录</a></li>
        </ol>
    </div>
    <div  style="width: 75%;height: 100%;background-color: #d5fa4c;float: left;">
				<iframe width="100%"height="100%" src="/web4/006/login.html" id="yemian"></iframe>
</div>
</div>
</body>
</html>